package com.example.Interface;

public class Test3Interface {
    public static void main(String[] args) {
        InterAImpl i = new InterAImpl();
        i.show();

        // ia.show2();
        InterA.show2();     //InterA.show2
        InterB.show2();     //InterB..show2
        // InterAImpl.show2();
    }
}

class InterAImpl implements InterA, InterB {
    @Override
    public void show() {
        System.out.println("重写后的show方法");
    }
}

interface InterB {

    public default void show() {
        System.out.println("B...接口的show方法");
    }

    public static void show2() {
        System.out.println("InterB..show2");
    }
}